package engine;

import java.util.HashMap;

public class Cocomo {
	
//	Organic 	3.2 	1.05
//	Semi-detached 	3.0 	1.12
//	Embedded 	2.8 	1.20
	
	private static HashMap<String, double[]> value;

	static {
		value = new HashMap<String, double[]>();
		value.put("Organic", new double[]{3.2, 1.05});
		value.put("Semi-Detached", new double[]{3.0, 1.12});
		value.put("Embedded", new double[]{2.8, 1.20});
	}


	
	

	public static double effort(String typ, double kloc, double eaf){
		
		double []muls = value.get(typ);
		
		return muls[0]*Math.pow(kloc, muls[1])*eaf;
	}
	
}
